package schedule

import "learngo/crawler/engine"

type SimpleSchedule struct {
	workChan chan engine.Request
}

func (s *SimpleSchedule)Submit(r engine.Request){
	go func() {
		s.workChan<-r
	}()
}
func (s *SimpleSchedule)ConfigureMasterWorkerChan(in chan engine.Request){
	s.workChan=in
}